import request from '@/utils/request/index'

// 任务测试得分
export const reqClassScore = (data) => {
  console.log(data)
  return request.get(`/student/getClassScore?courseId=${data.courseId || ''}&classId=${data.classId || ''}&cpi=${data.cpi || ''}&personId=${data.personId || ''}`)
}

// 登陆
export const reqStudentInfo = (name) => {
  return request.get('/student/login?name=' + name )
}

// 任务参与度
export const reqClassSchedule = (data) => {
  return request.get(`/student/getClassSchedule?courseId=${data.courseId || ''}&classId=${data.classId || ''}&cpi=${data.cpi || ''}&name=${data.name || ''}`)
}

// 学生学情
export const reqClassScoreSummary = (data) => {
  return request.get(`/student/getClassScoreSummary?courseId=${data.courseId || ''}&classId=${data.classId || ''}&cpi=${data.cpi || ''}`)
}

// 课程完成情况
export const reqClassJob = (data) => {
  return request.get(`/student/getClassJob?courseId=${data.courseId || ''}&classId=${data.classId || ''}&cpi=${data.cpi || ''}`)
}
// 学情分析
export const reqStudentClassSchedule = (data) => {
  return request.get(`/student/getStudentClassSchedule?courseId=${data.courseId || ''}&classId=${data.classId || ''}&cpi=${data.cpi || ''}`)
}
// Ai学习计划
export const reqAiCourseDate = (courseId) => {
  return request.get(`/student/getAiCourseDate?courseId=${courseId || ''}`)
}
